import java.math.BigInteger;
import java.util.Scanner;

public class 质因数 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        if (issushu(n)){
            System.out.println(n+"="+n);
        }else {
            System.out.println(n+"="+heshu(n));
        }
    }

    static String heshu(int n){
        int i = 2;
        String str = "";
        while (n!=1){
            if (issushu(i)&&n%i==0){
                str = str + "*" + i;
                n = n/i;
            }
            else {
                i++;
            }
        }
        return  str.substring(1);
    }
    static boolean issushu(int n){
        if(n==2||n==3){
            return true;
        }
        if (n%2==0){
            return false;
        }
        for (int i = 3; i < Math.sqrt(n); i=i+2) {
            if (n%i==0){
                return false;
            }
        }
        return true;
    }
}
